package cn.yunhe.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.yunhe.entity.Emp;

public interface EmpDao {
	// 权威
	List<Emp> findEmpAll();
	Emp findEmpById(int eid);
	int updateEmpByEmpId(@Param("eid")int eid,@Param("epwd")String epwd);
	 List<Emp> findEmpAllByLikeName(@Param("ename")String ename);
	// 
	List<Emp> chaAll();
	List<Emp> deidChaEmp1(@Param(value="deid")int deid);
	Emp login(String ename, String pwd);
	int registy(Emp emp);
	int delete(int eid);
	int updatePwd(Emp emp);
	Emp getLev(String ename);
	List<Emp> findEmpsByLev();
	int updateDeptByEid(@Param("eid")int eid,@Param("deid")int deid);
	int updateEmpByEid(Emp emp);
	Emp getEmpByEid(int eid);
	Emp getEmpByEname(String ename);
    Emp getEmpBy(String ename);
    List<Emp> selectEmp(String ename);
}
